Ext.define('TS.view.general.author.Grid' , {
	extend: 'TS.lib.Grid',
	alias : 'widget.authorgrid',
	tbar:Factory.toolbar.search(),
	frame:false,
	store: 'Author',
	columns: [
	         
	          
	 	{xtype: 'rownumberer'},{
			header:'ID',
			hidden:true,
			dataIndex:'author_id'
		},{
			header:'Autor',
			sortable:true,
			renderer:function(v,x,s){
				return s.data.author_firstname + ' ' +
				s.data.author_middlename + ' ' +
				s.data.author_lastname + ' ';
			},
			dataIndex:'author_firstname'
		},{
			header:'author_firstname',
			sortable:true,hidden:true,
			dataIndex:'author_firstname'
		},{
			header:'author_middlename',
			sortable:true,hidden:true,
			dataIndex:'author_middlename'
		},{
			header:'author_lastname',
			sortable:true,hidden:true,
			dataIndex:'author_lastname'
		},{
			header:'denomination_id',
			renderer:Factory.rend.dict(Dict.denomination),
			dataIndex:'denomination_id'
		},{
			header:'language_id',
			renderer:Factory.rend.dict(Dict.language),
			dataIndex:'language_id'
		},{
			header:'author_image',
			sortable:true,
			renderer:function(v,x,s){
				return Ext.String.format(HTML.img,URL._('upload/author_image_'+s.data.author_id));
			},
			dataIndex:'author_image'
		}
	]
});
